import { createStore } from "vuex";
import userState from "./user/state";
import { userMutations } from "./user/mutation";
import { userGetters } from "./user/getters";
import { userActions } from "./user/actions";
const store = createStore({
  state: {
    ...userState,
    UserStateVersion: "0.0.1",
  },
  mutations: {
    ...userMutations,
  },
  actions: {
    ...userActions,
  },
  getters: {
    ...userGetters,
  },
});

export function useStore() {
  return store;
}

export default store;
